﻿using System.ComponentModel;
using System.Windows;
namespace SLS.Base
{
    public partial class ExKEY : SLBC
    {
        public ExKEY()
        {
           
        }
        public override void SLBC_Loaded(object sender, RoutedEventArgs e)
        {
            #region Not In DesignMode
            if (DesignerProperties.GetIsInDesignMode(this as DependencyObject))
            {
                return;
            }
            #endregion
          
            if (ViewModelBase != null)
            {
                if (ViewModelBase.ActiveExDataRow != null)
                {
                    if (ViewModelBase.ActiveExDataRow.TBName == BaseTable)
                        return;
                    ViewModelBase.ActiveExDataRow.BuildSet4Reference(BaseTable);
                }
            }
            base.SLBC_Loaded(sender, e);
        }
    }
}
